package com.example.demo.design.creational.singleton.president;

/**
 * @author luowj12
 * @since 2021/5/6 15:04
 */
public class SrototypeTest {

    public static void main(String[] args) {
        PresidentSrototype st1 = new PresidentSrototype();
        PresidentSrototype st2 = new PresidentSrototype();

        if (st1 == st2) {
            System.out.println("他们是同一人！");
        } else {
            System.out.println("他们不是同一人！");
        }
    }

}
